package org.ycx.doc.service;

import org.ycx.common.base.BaseService;
import org.ycx.doc.dao.enums.GroupUsersRole;
import org.ycx.doc.dao.model.DocGroup;
import org.ycx.doc.dao.model.DocProject;
import org.ycx.doc.dao.model.DocProjectExample;

import java.security.acl.Group;
import java.util.List;

/**
* DocProjectService接口
* Created by yang on 2017-08-30 17:02:41.
*/
public interface IDocProjectService extends BaseService<DocProject, DocProjectExample> {

    List<DocProject> findProjectByUser(int uid, List<GroupUsersRole> roles);

    int addProject(DocProject bean, Integer gid);

    List<DocGroup> findUserGroups(int uid);

    int publish(Integer appId, String ids);

    int findRoleByProjectAndUid(Integer appId, int uid);
}